import Vue from "vue";
import VueRouter from "vue-router";
import ButtonDemo from "../views/button.vue";
import DialogDemo from "../views/dialog.vue";
import CheckboxDemo from "../views/checkbox.vue";
import treeDemo from "../views/tree.vue";
import testDemo from "../views/test.vue";
Vue.use(VueRouter);

const routes = [
  {
    path: "/button",
    name: "button",
    component: ButtonDemo
  },
  {
    path: "/dialog",
    name: "dialog",
    component: DialogDemo
  },
  {
    path: "/checkbox",
    name: "checkbox",
    component: CheckboxDemo
  },
  {
    path: "/tree",
    name: "tree",
    component: treeDemo
  },
  {
    path: "/test",
    name: "test",
    component: testDemo
  }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;
